package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FinancialKeywordMapper;
import com.ruoyi.system.domain.FinancialKeyword;
import com.ruoyi.system.service.IFinancialKeywordService;

/**
 * keywordService业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-07
 */
@Service
public class FinancialKeywordServiceImpl implements IFinancialKeywordService 
{
    @Autowired
    private FinancialKeywordMapper financialKeywordMapper;

    /**
     * 查询keyword
     * 
     * @param id keyword主键
     * @return keyword
     */
    @Override
    public FinancialKeyword selectFinancialKeywordById(Long id)
    {
        return financialKeywordMapper.selectFinancialKeywordById(id);
    }

    /**
     * 查询keyword列表
     * 
     * @param financialKeyword keyword
     * @return keyword
     */
    @Override
    public List<FinancialKeyword> selectFinancialKeywordList(FinancialKeyword financialKeyword)
    {
        return financialKeywordMapper.selectFinancialKeywordList(financialKeyword);
    }

    /**
     * 新增keyword
     * 
     * @param financialKeyword keyword
     * @return 结果
     */
    @Override
    public int insertFinancialKeyword(FinancialKeyword financialKeyword)
    {
        return financialKeywordMapper.insertFinancialKeyword(financialKeyword);
    }

    /**
     * 修改keyword
     * 
     * @param financialKeyword keyword
     * @return 结果
     */
    @Override
    public int updateFinancialKeyword(FinancialKeyword financialKeyword)
    {
        return financialKeywordMapper.updateFinancialKeyword(financialKeyword);
    }

    /**
     * 批量删除keyword
     * 
     * @param ids 需要删除的keyword主键
     * @return 结果
     */
    @Override
    public int deleteFinancialKeywordByIds(Long[] ids)
    {
        return financialKeywordMapper.deleteFinancialKeywordByIds(ids);
    }

    /**
     * 删除keyword信息
     * 
     * @param id keyword主键
     * @return 结果
     */
    @Override
    public int deleteFinancialKeywordById(Long id)
    {
        return financialKeywordMapper.deleteFinancialKeywordById(id);
    }
}
